Created extensible Stylelint configuration ποΈ #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Details
css
,scss
, andless
.stylelint-config-standard-scss
which extendsstylelint-config-standard
andstylelint-config-recommended-scss
, both of which extendstylelint-config-recommended
π΅βπ«What have you changed?
stylelint.config.js
.stylelint-config-property-sort-order-smacss
.@stylistic/stylelint-plugin
stylelint-declaration-strict-value
stylelint-order
stylelint-scss
postcss-scss
andpostcss-less
.Why are you making these changes?
stylelint-config-property-sort-order-smacss
is the only config which is extended because as it excels in defining the order of css rules for all syntaxes.@stylistic/stylelint-plugin
: The 76 rules that enforce stylistic conventions and were removed from Stylelint have been added for users who prefer to use a single tool instead of using both a linter and code formatter.stylelint-declaration-strict-value
: Used to enforce using variables or functions for defined properties. This plugin only has 1 rule which teams will likely need to configure to meet their own requirements. The plugin has been included and configured to check any property ending in "color" as well as "fill", "stroke", and "font-size" which are properties which commonly use variables or functions to better maintain the code.stylelint-order
: Thestylelint-config-property-sort-order-smacss
config definesorder/properties-order
available from this plugin. We also defineorder/order
to define the grouping order for css, scss, and less.stylelint-scss
: Scss-specific rules are applied only to.scss
files.postcss
is used to better support SCSS and Less syntax.